Federico Mena Quintero [Tue, 28 Jun 2011 23:53:48 +0000 (18:53 -0500)]
Remove unused struct field
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Tue, 28 Jun 2011 22:24:53 +0000 (17:24 -0500)]
Actually highlight the 'recently used' and 'search' items in the shortcuts bar
They weren't being selected in the shortcuts bar when those modes were
activated programmatically, instead of through the user selecting
them from the user interface.
Federico Mena Quintero [Tue, 28 Jun 2011 22:17:22 +0000 (17:17 -0500)]
Start in recently-used mode when no folder is set
In RELOAD_EMPTY mode, when no folder has been selected by the calling app, we now
start showing the recently-used list. The rationale is as follows:
- In Open mode, the user is likely to pick a file he has used recently.
- In Save mode, the user is likely to want a destination folder which
he has used recently.
For the Save case, where we want to present the user with recent folders instead
of recent files, we will make the recent-list do so in subsequent commits.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Tue, 28 Jun 2011 20:21:49 +0000 (15:21 -0500)]
Put the pathbar in the 'Save in folder:' row in Save mode
Now we reparent the browse_path_bar_hbox to that spot in Save mode,
or to be above the file lists in Open mode. The pathbar makes for a very
clear indication of the location to save in.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Tue, 28 Jun 2011 18:33:32 +0000 (13:33 -0500)]
Get rid of the save_folder_combo
And with this we get rid of the craziness of having a separate filter model
for the combobox's model.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Mon, 27 Jun 2011 22:51:57 +0000 (17:51 -0500)]
Remove the expander in Save mode, and the configuration key
This effectively makes the file chooser always be in 'expanded' mode.
Later, we'll move the pathbar to the 'Save in folder:' line.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Federico Mena Quintero [Mon, 27 Jun 2011 20:30:59 +0000 (15:30 -0500)]
Utility function to extract folders from the recently-used list
This extracts the parent folders from the items in the recently-used
list. We'll use it in the file chooser to present a list of
recently-used folders.
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
Cosimo Cecchi [Fri, 1 Jul 2011 16:33:26 +0000 (12:33 -0400)]
toolbar: don't leak the sibling path
Cosimo Cecchi [Thu, 30 Jun 2011 21:00:32 +0000 (17:00 -0400)]
toolbar: don't count invisible widgets when building the sibling path
Also, fix RTL nth-child handling for toolbars.
Cosimo Cecchi [Thu, 30 Jun 2011 19:51:10 +0000 (15:51 -0400)]
toolbar: invalidate order when an item visibility changes
Matthias Clasen [Sat, 18 Jun 2011 17:14:18 +0000 (13:14 -0400)]
Test box and toolbar regions in parallel
This makes it easy to see discrepancies.
Plus, it is fun
Matthias Clasen [Sat, 18 Jun 2011 16:45:56 +0000 (12:45 -0400)]
toolbar: nth-child support for GtkToolbar
This doesn't quite work right yet.
Cosimo Cecchi [Thu, 30 Jun 2011 20:19:57 +0000 (16:19 -0400)]
box: follow children visibility when building the sibling path
This fixes nth-child not working for widgets which were not
visible before being added to the box, but it's also a better fix
for https://bugzilla.gnome.org/show_bug.cgi?id=652769
Cosimo Cecchi [Fri, 1 Jul 2011 15:47:41 +0000 (11:47 -0400)]
Revert "gtkbox: Invalidate order on changes, even if the child is not visible"
This reverts commit
8cb0cc58e321641ebda699b9cbdc0067aeb56d3f.
Matthias Clasen [Thu, 30 Jun 2011 23:18:26 +0000 (19:18 -0400)]
Fix up docs for predefined style classes.
The table was incomplete and out of date. Instead, just
put a list of links in that place, and move all the extra
documentation to the macros. Bug 653785
Matthias Clasen [Thu, 30 Jun 2011 18:45:16 +0000 (14:45 -0400)]
GdkKeymap: Prevent an infinite loop in the non-XKB case
Somehow the increment got lost, as comparison with the 2.x code
shows.
Vincent Untz [Tue, 28 Jun 2011 09:47:37 +0000 (11:47 +0200)]
gtkbox: Invalidate order on changes, even if the child is not visible
When we build the sibling path for the order, we do not skip hidden
children (since, quoting the comment, "we cannot reliably detect changes
in widget visibility"). So we need to invalidate the order when hidden
children are reordered and removed.
https://bugzilla.gnome.org/show_bug.cgi?id=652769
John (J5) Palmieri [Wed, 29 Jun 2011 18:53:33 +0000 (14:53 -0400)]
[gi] add more annotations to force drag and drop api to be methods
Wouter Bolsterlee [Wed, 29 Jun 2011 17:31:53 +0000 (19:31 +0200)]
Updated Dutch translation by Wouter Bolsterlee
John (J5) Palmieri [Wed, 29 Jun 2011 16:11:36 +0000 (12:11 -0400)]
[gi] make sure gtk_drag_dest_unset is annotated as a method
Juan Pablo Ugarte [Wed, 29 Jun 2011 14:45:33 +0000 (11:45 -0300)]
Make GtkBuilder do not delay construct properties that can be resolved
(so construct is respected when possible) and skip construct only props that
can not.
Javier Jardon [Wed, 29 Jun 2011 14:00:06 +0000 (15:00 +0100)]
gtk/gtkmenuitem: Remove reference to deprecated and removed GtkItem
Chun-wei Fan [Wed, 29 Jun 2011 05:55:46 +0000 (13:55 +0800)]
Update VS2010 READNE.txt
This file should have Windows CRLF EOL as well
Chun-wei Fan [Wed, 29 Jun 2011 04:49:14 +0000 (12:49 +0800)]
Re-attempt to correct EOL on VS2010 solution
This time I realized that I needed to set autocrlf=false on my Windows side
... ugh...
This is one of those files that must have CRLF line endings to work
correctly :|
Claudio Saavedra [Mon, 27 Jun 2011 16:58:21 +0000 (19:58 +0300)]
Use a PAGE_STEP macro instead of a magic number
Helps to understand the code.
https://bugzilla.gnome.org/show_bug.cgi?id=653512
Ihar Hrachyshka [Mon, 27 Jun 2011 22:32:26 +0000 (01:32 +0300)]
Updated Belarusian translation.
Matthias Clasen [Mon, 27 Jun 2011 20:46:33 +0000 (16:46 -0400)]
Don't forget to initialize a variable
Pointed out by clang in bug 653333.
John (J5) Palmieri [Mon, 27 Jun 2011 17:43:46 +0000 (13:43 -0400)]
[gi] correct annotation for GtkMenuPositionFunc callbacks
Mike Gorse [Wed, 22 Jun 2011 20:23:15 +0000 (15:23 -0500)]
bgo#653191 - fix uninitialized variable in gtk_file_chooser_entry.c
Paolo Borelli [Sun, 26 Jun 2011 18:41:21 +0000 (20:41 +0200)]
Speed up page insertion
Make sure to call widget_set_child_visible(false) on all tabs except the
current before calling widget_set_parent.
Ihar Hrachyshka [Sat, 25 Jun 2011 18:32:27 +0000 (21:32 +0300)]
Updated Belarusian translation.
Ihar Hrachyshka [Sat, 25 Jun 2011 18:25:44 +0000 (21:25 +0300)]
Updated Belarusian translation.
Chun-wei Fan [Fri, 24 Jun 2011 18:06:53 +0000 (02:06 +0800)]
Update VS projects distribution
Change the EXTRA_DIST to distribute the gtk3-demo projects (instead of
gtk-demo)
Chun-wei Fan [Fri, 24 Jun 2011 05:19:58 +0000 (13:19 +0800)]
Add headers required by gtk/gtkwin32embedwidget.c
Some functions from the added headers are needed by this file to compile
without C4013 (a.k.a implicit declaration of ...) warnings/errors
Chun-wei Fan [Fri, 24 Jun 2011 04:48:22 +0000 (12:48 +0800)]
Update VS project files
-Reinstate build/win32/vs10/gtk+.sln with the correct EOL (DOS/Windows), so
that it will be correctly recognized by Windows instead of having the
annoying "Unrecognized Visual Studio Version".
-Update property sheets to reflect on new headers added
-Change the demo program to be gtk3-demo.exe, to be consistent with the
names on other platforms, and updated/renamed related project/solution
files, and added overlay.c to the list of demo sources.
Chun-wei Fan [Fri, 24 Jun 2011 04:42:47 +0000 (12:42 +0800)]
Temporarily remove build/win32/vs10/gtk+.sln
The line endings need to be DOS/Windows...
Murray Cumming [Thu, 23 Jun 2011 22:20:57 +0000 (00:20 +0200)]
GtkPaned docs: Remove sentence saying see GtkPaned.
Arash Mousavi [Thu, 23 Jun 2011 19:02:24 +0000 (23:32 +0430)]
Updated Persian Translation
Scott Moreau [Thu, 23 Jun 2011 05:10:24 +0000 (23:10 -0600)]
Track wayland protocol changes.
Colin Walters [Wed, 22 Jun 2011 15:07:37 +0000 (11:07 -0400)]
introspection.m4: Update from g-i
This fixes substitution with dash.
Fran Diéguez [Tue, 21 Jun 2011 11:58:45 +0000 (13:58 +0200)]
Updated Galician translations
Claudio Saavedra [Mon, 20 Jun 2011 21:29:45 +0000 (00:29 +0300)]
Avoid GApplication being released twice on gtk_application_remove_window() calls
Removing the window from the window list before setting the
application to %NULL avoids gtk_application_remove_window() triggering
another call to gtk_application_window_removed(), which would release
the application a second time.
https://bugzilla.gnome.org/show_bug.cgi?id=653053
Javier Jardón [Mon, 20 Jun 2011 13:24:57 +0000 (14:24 +0100)]
docs: remove tmpl directories
We do not use template files anymore
Javier Jardón [Mon, 20 Jun 2011 10:38:03 +0000 (11:38 +0100)]
configure.ac: Generate xz tarballs with ustar format by default
Chun-wei Fan [Mon, 20 Jun 2011 09:05:00 +0000 (17:05 +0800)]
Update VS property sheets
As Cairo and Cairo-GObject are often built as two seperate DLLs/modules,
set the property sheets to link to both libraries, instead of using the
previous approach where a monolithic Cairo DLL which contains GObject
support is used.
Chun-wei Fan [Mon, 20 Jun 2011 04:19:54 +0000 (12:19 +0800)]
Refine Visual C++ 2010 projects
-Remove unneeded tags from projects
-Seperate intermediate directories for projects to avoid rebuilding/
linking on every rebuild and MSBuild errors (et al.) for not being
able to write into build log files as they are in use.
Kjartan Maraas [Sun, 19 Jun 2011 15:32:13 +0000 (17:32 +0200)]
Updated Norwegian bokmål translation.
Jorge González [Sun, 19 Jun 2011 15:18:01 +0000 (17:18 +0200)]
Updated Spanish translation
Matthias Clasen [Sat, 18 Jun 2011 16:36:38 +0000 (12:36 -0400)]
Add sibling information to widget path string representations
Matthias Clasen [Sat, 18 Jun 2011 15:11:47 +0000 (11:11 -0400)]
Fix css syntax in example
Matthias Clasen [Sat, 18 Jun 2011 02:57:35 +0000 (22:57 -0400)]
Remove an unused variable
Matthias Clasen [Sat, 18 Jun 2011 00:35:41 +0000 (20:35 -0400)]
Remove nonexisting properties
glade insists on adding GtkGrid:n-rows and :n-columns, for
no good reason...
Cosimo Cecchi [Fri, 17 Jun 2011 15:33:18 +0000 (11:33 -0400)]
tests: import the widget-factory test for theming
Courtesy of Andrea Cimitan <andrea.cimitan@canonical.com>.
Matthias Clasen [Fri, 17 Jun 2011 03:51:06 +0000 (23:51 -0400)]
Update keybinding docs
These were still explaining gtkrc syntax.
Matthias Clasen [Fri, 17 Jun 2011 03:35:24 +0000 (23:35 -0400)]
Remove unnecessary includes
gtkstyle.h is similarly unused.
Matthias Clasen [Fri, 17 Jun 2011 03:33:43 +0000 (23:33 -0400)]
Remove unused includes
Nothing is using gtkrc.h functionality any more.
Matthias Clasen [Fri, 17 Jun 2011 03:18:03 +0000 (23:18 -0400)]
Silence a warning
Matthias Clasen [Fri, 17 Jun 2011 02:15:50 +0000 (22:15 -0400)]
GtkBox: don't reset styles too often
José Aliste [Thu, 16 Jun 2011 18:32:13 +0000 (14:32 -0400)]
info_bar: call style_updated at the end of info_bar_init
This fix a render bug where the infobar would not add borders
arount its content. Fix proposed by Benjamin Otte.
Chun-wei Fan [Thu, 16 Jun 2011 07:34:43 +0000 (15:34 +0800)]
Update Visual C++ projects
Use G_ENABLE_DEBUG for all debug builds
Benjamin Otte [Wed, 15 Jun 2011 20:50:59 +0000 (22:50 +0200)]
toolbar: Better fix for animations
It turns out there's more places where the toolbar item size is used as
the margin box instead of the content box. Because of that, store the
margin box when allocating and use it whenever calls
toolbar_content_get_allocation() instead of calling
gtk_widget_get_allocation().
Benjamin Otte [Wed, 15 Jun 2011 17:59:45 +0000 (19:59 +0200)]
toolbar: Handle the fact that size_allocate() != get_allocation()
size_allocate() allocates the available space for the margin box,
get_allocation() returns the actual space of the content box and those
can be different. And then animations never stop.
If that makes you go "huh?", you might want to read
http://www.w3.org/TR/CSS21/box.html
and the docs for gtk_widget_compute_align().
Benjamin Otte [Wed, 15 Jun 2011 15:24:36 +0000 (11:24 -0400)]
reftests: fix background-area reftest after the last commit
Cosimo Cecchi [Wed, 15 Jun 2011 05:07:11 +0000 (01:07 -0400)]
themingengine: shrink the background size to the padding-box
This fixes a regression introduced by this commit [1] that causes
background to draw beyond the padding-box, which breaks rounded corners,
(in addition to not being compliant with what CSS does by default).
[1] http://git.gnome.org/browse/gtk+/commit/?id=
c56700ca3029a9ab1362009bff35f2a70e432c02
https://bugzilla.gnome.org/show_bug.cgi?id=652618
Xan Lopez [Wed, 15 Jun 2011 12:13:20 +0000 (14:13 +0200)]
themingengine: plug a couple of leaks
Xan Lopez [Wed, 15 Jun 2011 11:45:34 +0000 (13:45 +0200)]
border-image: Fix leakage
Benjamin Otte [Sun, 29 May 2011 03:24:28 +0000 (05:24 +0200)]
tests: Add tests for font-family
This readds the tests now that font-family works again. They were
previously removed when font-family support was backed out due to bugs.
Benjamin Otte [Sun, 29 May 2011 05:03:59 +0000 (07:03 +0200)]
css: Make font property a shorthand
... and implement the CSS font properties:
- font-size
- font-style
- font-family
- font-weight
- font-variant
This is the second try at this. The first was backed out previously due
to bugginess. Let's hope this one survives a bit longer.
Also makes the font-family CSS test work again.
Matthias Clasen [Wed, 15 Jun 2011 01:59:55 +0000 (21:59 -0400)]
Add a missing break statement
Matthias Clasen [Wed, 15 Jun 2011 01:58:51 +0000 (21:58 -0400)]
Add a missing break statement
Matthias Clasen [Wed, 15 Jun 2011 01:56:50 +0000 (21:56 -0400)]
Avoid an oob read
Matthias Clasen [Wed, 15 Jun 2011 01:53:53 +0000 (21:53 -0400)]
Remove a redundant NULL check
Matthias Clasen [Wed, 15 Jun 2011 01:50:16 +0000 (21:50 -0400)]
Avoid a dereference-before-null-check
Matthias Clasen [Wed, 15 Jun 2011 01:44:12 +0000 (21:44 -0400)]
Give this code a chance to work
At least it does not get uninitialized variable warnings now.
Matthias Clasen [Wed, 15 Jun 2011 01:18:08 +0000 (21:18 -0400)]
Make this code more meaningful
Matthias Clasen [Wed, 15 Jun 2011 01:14:48 +0000 (21:14 -0400)]
Don't forget to cleanup varargs
William Jon McCann [Tue, 14 Jun 2011 20:01:29 +0000 (16:01 -0400)]
tests: Add simple test for image clipboard
Matej Urbančič [Tue, 14 Jun 2011 16:24:30 +0000 (18:24 +0200)]
Updated Slovenian translation
Juan A. Suarez Romero [Tue, 14 Jun 2011 09:49:23 +0000 (09:49 +0000)]
image: Initialize variable
Matthias Clasen [Tue, 14 Jun 2011 02:35:15 +0000 (22:35 -0400)]
GtkAssistant: improve button labels
Forward/Back/Last has been declared strange; so go with something
a little more friendly: Continue/Go Back/Finish.
https://bugzilla.gnome.org/show_bug.cgi?id=652506
Benjamin Otte [Mon, 13 Jun 2011 16:29:07 +0000 (18:29 +0200)]
docs: Add Since tag to GtkWidget::draw
Benjamin Otte [Mon, 13 Jun 2011 16:27:24 +0000 (18:27 +0200)]
demos: Remove unused variable
Benjamin Otte [Mon, 13 Jun 2011 04:25:19 +0000 (06:25 +0200)]
tests: Add a CSS test for color parsing errors
In [particular check for the fix in the last commit.
Benjamin Otte [Mon, 13 Jun 2011 04:24:10 +0000 (06:24 +0200)]
cssparser: Actually send an error in an error case
The error case was excess commas in rgb/rgba colors, such as
rgba(0,255,0,0,0.5)
Benjamin Otte [Mon, 13 Jun 2011 04:13:16 +0000 (06:13 +0200)]
themingengine: Improve handling of different colors
We don't want to have different colors cause seams, so we try very hard
to render them at the same time.
Benjamin Otte [Mon, 13 Jun 2011 03:04:44 +0000 (05:04 +0200)]
themingengine: Implement support for multiple border colors
Also use this support to implement inset and outset border styles
without cheats.
Benjamin Otte [Mon, 13 Jun 2011 01:45:18 +0000 (03:45 +0200)]
styleproperty: Add border-*-color style properties
And make border-color a shorthand
Benjamin Otte [Sun, 12 Jun 2011 23:52:42 +0000 (01:52 +0200)]
reftests: Check that the default border color is the foreground color
Benjamin Otte [Sun, 12 Jun 2011 23:50:06 +0000 (01:50 +0200)]
styleproperty: The default border color is the normal color
Benjamin Otte [Sun, 12 Jun 2011 23:26:11 +0000 (01:26 +0200)]
styleproperty: Make default_value() take a state
Because of this, resolve() needs to take a state, too. This is so that
we can have default values depend on other values (like border color).
Benjamin Otte [Mon, 13 Jun 2011 03:49:12 +0000 (05:49 +0200)]
roundedbox: Fix border radius grow algorithm
When one radius gets to 0, the other should be set to 0, too. Otherwise
the paths constructed from it will not be correct.
Matthias Clasen [Mon, 13 Jun 2011 12:03:40 +0000 (08:03 -0400)]
Bump version
Matthias Clasen [Mon, 13 Jun 2011 11:33:47 +0000 (07:33 -0400)]
Forgotten file
Carlos Garnacho [Sat, 2 Apr 2011 09:46:42 +0000 (11:46 +0200)]
xi2: Handle XIM modules that replace events
Fixes Bug 645993 - XIM has wierd behaviors. Some XIM modules
filter every key event, possibly replacing it with their own
one. These events usually have serial=0, so make
GdkDeviceManagerXI2 also listen on these.
Matthias Clasen [Mon, 13 Jun 2011 10:56:12 +0000 (06:56 -0400)]
Remove broken font-family css test
Matthias Clasen [Mon, 13 Jun 2011 04:16:55 +0000 (00:16 -0400)]
Update for 3.1.6
Ignacio Casal Quinteiro [Thu, 19 May 2011 16:53:05 +0000 (18:53 +0200)]
overlay: add initial version of gtkoverlay
Javier Jardón [Mon, 13 Jun 2011 02:06:04 +0000 (03:06 +0100)]
configure.ac: Use aux directory to store autogenerated files
Daniel Drake [Sun, 12 Jun 2011 16:48:17 +0000 (17:48 +0100)]
gtkdnd: Don't bind/unbind keycodes that couldn't be determined
At http://dev.laptop.org/ticket/10643 we are seeing that drag-and-drop
within the Sugar shell causes all of Sugar's custom keybindings to be
removed.
This is because gtkdnd tries to unbind XK_KP_Space, which (on my systems)
is resolved to NoSymbol by XKeycodeToKeysym(). NoSymbol has value 0,
the same as AnyKey, and XUngrabKey(AnyKey) is equivalent to unbinding
all possible keycodes.
Fix this by catching NoSymbol before binding/unbinding.
https://bugzilla.gnome.org/show_bug.cgi?id=652402
Matthias Clasen [Mon, 13 Jun 2011 01:36:37 +0000 (21:36 -0400)]
Revert "gtk/gtkmenuitem: gtk_misc_set_alignment replacing"
This reverts commit
49e62d2a5f6cb0cefbb03a4b6a1df413f3903fea.
It turns out that GtkAccelLabel is not quite ready for
widget align properties.